package com.example.binder

import android.app.Service
import android.content.Intent
import android.content.ServiceConnection
import android.os.IBinder

class MyService : Service() {

    override fun onCreate() {
        super.onCreate()
    }

    override fun onBind(intent: Intent?): IBinder? {
        return object:IMyAidlInterface.Stub(){
            override fun add(a: Int, b: Int): Int {
                return a+b
            }
        }
    }
}